﻿<Layout:LayoutManager xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:Layout="clr-namespace:Composite.Layout;assembly=Composite.Layout"
                      xmlns:Infrastructure="clr-namespace:LayoutManager.Infrastructure;assembly=LayoutManager.Infrastructure"
                      ShellName="Shell">
    <Layout:LayoutManager.Layouts>
        <Layout:Layout x:Name="FirstLayout"
                       Fullname="First Layout"
                       Filename="Layouts\FirstLayout.xaml"
                       Description="This is the default layout"
                       ThumbnailSource="pack://application:,,,/LayoutManager.Infrastructure;component/Resources/Images/layout1.png"
                       IsDefault="True">
            <Layout:Layout.Views>
                <Layout:ViewModel RegionName="Menu"
                                  Type="{x:Type Infrastructure:IMenuViewModel}"
                                  ViewProperty="View" />
                <Layout:View RegionName="Left"
                             Type="{x:Type Infrastructure:IViewA}" />
                <Layout:View RegionName="Right"
                             Type="{x:Type Infrastructure:IViewB}" />
            </Layout:Layout.Views>
        </Layout:Layout>
        <Layout:Layout x:Name="SecondLayout"
                       Fullname="Second Layout"
                       Filename="Layouts\SecondLayout.xaml"
                       Description="This is a typical Outlook layout"
                       ThumbnailSource="pack://application:,,,/LayoutManager.Infrastructure;component/Resources/Images/layout2.png">
            <Layout:Layout.Views>
                <Layout:ViewModel RegionName="Menu"
                                  Type="{x:Type Infrastructure:IMenuViewModel}"
                                  ViewProperty="View" />
                <Layout:View RegionName="Left"
                             Type="{x:Type Infrastructure:IViewA}" />
                <Layout:View RegionName="TopRight"
                             Type="{x:Type Infrastructure:IViewB}" />
                <Layout:ViewModel RegionName="BottomRight"
                                  Type="{x:Type Infrastructure:IViewModelC}"
                                  ViewProperty="View" />
            </Layout:Layout.Views>
        </Layout:Layout>
        <Layout:Layout x:Name="ThirdLayout"
                       Fullname="Third Layout"
                       TypeName="LayoutManager.Infrastructure.IThirdLayout, LayoutManager.Infrastructure"
                       Description="This is an inverted layout"
                       ThumbnailSource="pack://application:,,,/LayoutManager.Infrastructure;component/Resources/Images/layout3.png">
            <Layout:Layout.Views>
                <Layout:ViewModel RegionName="Menu"
                                  Type="{x:Type Infrastructure:IMenuViewModel}"
                                  ViewProperty="View" />
                <Layout:View RegionName="Right"
                             Type="{x:Type Infrastructure:IViewA}" />
                <Layout:View RegionName="TopLeft"
                             Type="{x:Type Infrastructure:IViewB}" />
                <Layout:ViewModel RegionName="BottomLeft"
                                  Type="{x:Type Infrastructure:IViewModelC}"
                                  ViewProperty="View" />
            </Layout:Layout.Views>
        </Layout:Layout>
    </Layout:LayoutManager.Layouts>
</Layout:LayoutManager>